package com.coderman.domainservice.blogtopic.app.clientimpl;

import com.coderman.domainservice.blogtopic.app.command.PublishBlogCommentCmd;
import com.coderman.domainservice.blogtopic.app.executor.PublishBlogCommentCmdExe;
import com.coderman.domainservice.blogtopic.client.api.BlogCommentService;
import com.coderman.domainservice.blogtopic.client.dto.BlogCommentDTO;
import com.coderman.domainservice.blogtopic.domain.gataway.BlogRepository;
import com.coderman.domainservice.blogtopic.domain.model.entity.BlogCommentBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Description:
 * date: 2021/3/30
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 * dubbo接口
 */
@Service
public class BlogCommentServiceImpl implements BlogCommentService {
    @Autowired
    private PublishBlogCommentCmdExe publishBlogCommentCmdExe;
    @Override
    public void publishComment(BlogCommentDTO commentDTO) {
        PublishBlogCommentCmd publishBlogCommentCmd = new PublishBlogCommentCmd();
        publishBlogCommentCmdExe.execute(publishBlogCommentCmd);
    }
}
